<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
		<title>msg box test</title>
		<link rel="stylesheet" type="text/css" href="./css/style.css"/>
		<script type="text/javascript" src="./core/core.js"></script>
		<script type="text/javascript">
		var i = 0;
		function add_msgbox(){
			var a = new Array();
			var p = a.constructor;
			i++;
			var e = window.event;
			var m = new igd.msgbox("page","你是猪头", 1000);
			msgbox_queue.enqueue(m);

			var t = new igd.timer(HZ,null,function(){alert(this.timeout);});
			timer_queue.enqueue(t);

			//var post = new igd.ajax.post("/router/routing_table_list_show.cgi",{limit:20},function(data){msgbox_queue.enqueue(new igd.msgbox("page",data,10000))});
		}
		function event_test(e){
			var event = e;
			alert(event);
			alert(navigator.userAgent.toLowerCase());
			alert(igd.browser.msie);
			alert(igd.browser.mozilla);
			alert(igd.browser.version);

			(function(){alert("ss")})()
			var s = o;
			alert(o);
		}
		function event_add(id,name,callback){
			var obj = igd.dom.getbyid(id);
			if(obj){
				obj[name] = callback;
				alert(obj);
			}
		}
		</script>
	</head>
	<body onload="event_add('button_01','ondblclick',event_test);">
		<button id="button_01">add msg</button>
		<div id="page">
		</div>
	</body>
</html>
